﻿<UserControl x:Class="UCL.Powersource.Views.Analysis.OneTeamOverTimeTableViewOld"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DataGrid Name="MyTable" HeadersVisibility="All" IsReadOnly="True" AutoGenerateColumns="True" ItemsSource="{Binding StatisticResultsTable}" AlternatingRowBackground="LightGreen" SelectionMode="Extended" SelectionUnit="Cell" AutoGeneratedColumns="MyTable_AutoGeneratedColumns_1" AutoGeneratingColumn="MyTable_AutoGeneratingColumn_1">
        <DataGrid.RowHeaderTemplate>
            <DataTemplate>
                    <TextBlock Text="{Binding Path=Item[0], RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type DataGridRow}}}"/>
            </DataTemplate>
        </DataGrid.RowHeaderTemplate>
    </DataGrid>
</UserControl>
